<%--
  Created by IntelliJ IDEA.
  User: win
  Date: 2020/10/15
  Time: 22:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>实现前端页面传来的参数接收和设置</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
%>
<jsp:useBean id="student" scope="session" class="com.zhf.demo02.Student"></jsp:useBean>
<jsp:setProperty name="student" property="id" param="id1"></jsp:setProperty>
<jsp:setProperty name="student" property="name" param="name1"></jsp:setProperty>
<jsp:getProperty name="student" property="id"/>
<jsp:getProperty name="student" property="name"/>
</body>
</html>
